package com.beep.erp.model.transfer;

import com.beep.erp.common.bean.TransferLogBean;
import com.beep.erp.http.HttpRetrofit;
import com.beep.erp.http.RetryWhenNetworkException;

import rx.Observable;

/**
 * Created by Jolly on 2018/8/2.
 */

public class TransferLogListModel implements TransferLogListContract.Model {
    @Override
    public Observable<TransferLogBean> getTransferLogList(String sign, String timeStamp, int pageSize, int pageNo) {
        return HttpRetrofit.getInstance().apiService.getTransferLogList(sign, timeStamp, pageSize, pageNo).compose(HttpRetrofit.toSubscribe()).compose(HttpRetrofit.toTransformer()).retryWhen(new RetryWhenNetworkException());
    }

}
